﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Data.SqlClient;
using System.Configuration;


namespace Login
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
        public static SqlConnection GetConnection
        {
            get
            {
                string ConnectionString = ConfigurationManager.ConnectionStrings["TrainingConnection"].ConnectionString;
                SqlConnection con = new SqlConnection(ConnectionString);
                con.Open();
                return con;
            }
        }
        public static string UserLoginName { get; set; }

    }
}
